package vip.specimen.system.datasource.validation;

import lombok.Getter;
import lombok.Setter;
import vip.specimen.system.datasource.validation.annotation.PasswordIsValid;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.UUID;

/**
 * *@Author: 余浪人
 * *@Date：2021/3/15 9:35
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
@Setter
@Getter
public class SystemUserEditPasswordValidation {
    @NotNull(message = "未检测到用户ID")
    private UUID uuid;
    @NotBlank(message = "新密码不可为空")
    @Size(min = 6, max = 32, message = "新密码长度不合格")
    private String password;

    @PasswordIsValid
    @NotBlank(message = "原始密码不可为空")
    private String oldPassword;
}
